<script setup lang="ts">
import { inject } from "vue";
import * as injectKeys from "@/services/injectKeys";
import { ImgComponent } from "@/models/component";

const props = defineProps<{ model: ImgComponent }>();
const model = props.model;

const imgService = inject(injectKeys.imgServiceKey)!;

const srcBs64 = imgService.getBs64(model.src.id);
</script>

<template>
  <q-img v-bind="model.props" :src="srcBs64" />
</template>

<style scoped lang="less"></style>
